package com.talent.pojo.dto;

import lombok.Data;

import jakarta.validation.constraints.NotBlank;

/**
 * 用户DTO
 */
@Data
public class UserDTO {
    
    @NotBlank(message = "姓名不能为空")
    private String name;
    
    @NotBlank(message = "手机号不能为空")
    private String phone;
    
    @NotBlank(message = "用户名不能为空")
    private String username;
    
    private String password; // 新增时必填，编辑时选填
    private String department;
}
